# -*- coding: utf-8 -*-
from airflow.operators.dummy_operator import DummyOperator
from utils.operators.external_dag_sensor import ExternalDagSensor,ExternalDagSensorAsync

# ##网点基础资料概要表
jms_dim__dim_network_whole_massage_check = ExternalDagSensorAsync(
    task_id='jms_dim__dim_network_whole_massage_check',
    external_dag_id='spmi',  # 需要等待的外部DAG id
    external_task_id='jms_dim__dim_network_whole_massage_check',  # 需要等待的外部Task id，可以为None
    external_execution_date_time='{{ execution_date | cst_ds }} 02:50:00',
    execution_delta_time_unit='days',
    execution_delta=0,
    allowed_states='success',
    mode='reschedule',
    timeout=600
)


spmi_dim__dim_ibk_sz_bill_config_base = ExternalDagSensorAsync(
    task_id='spmi_dim__dim_ibk_sz_bill_config_base',
    external_dag_id='spmi',  # 需要等待的外部DAG id
    external_task_id='spmi_dim__dim_ibk_sz_bill_config_base',  # 需要等待的外部Task id，可以为None
    external_execution_date_time='{{ execution_date | cst_ds }} 02:50:00',
    execution_delta_time_unit='days',
    execution_delta=0,
    allowed_states='success',
    mode='reschedule',
    timeout=600
)

spmi_dim__dim_ibk_network_cost_control_center_base = ExternalDagSensorAsync(
    task_id='spmi_dim__dim_ibk_network_cost_control_center_base',
    external_dag_id='spmi',  # 需要等待的外部DAG id
    external_task_id='spmi_dim__dim_ibk_network_cost_control_center_base',  # 需要等待的外部Task id，可以为None
    external_execution_date_time='{{ execution_date | cst_ds }} 02:50:00',
    execution_delta_time_unit='days',
    execution_delta=0,
    allowed_states='success',
    mode='reschedule',
    timeout=600
)


spmi_dim__dim_ibk_increase_product_config_base = ExternalDagSensorAsync(
    task_id='spmi_dim__dim_ibk_increase_product_config_base',
    external_dag_id='spmi',  # 需要等待的外部DAG id
    external_task_id='spmi_dim__dim_ibk_increase_product_config_base',  # 需要等待的外部Task id，可以为None
    external_execution_date_time='{{ execution_date | cst_ds }} 02:50:00',
    execution_delta_time_unit='days',
    execution_delta=0,
    allowed_states='success',
    mode='reschedule',
    timeout=600
)